<{include file="header.html"}>

<script type="text/javascript">

	function validate()
	{
		var title = document.getElementById('TITLE');

		// checking title
		if(!isValidLengthTextBox(title, <{$smarty.const.MAX_LENGTH_NAME}>, '<{$smarty.const._MSG_CODE_IS_TOO_LONG|utf8_escape_js}>')){
            return false;
        }
        
        if(isEmptyTextBox(title, '<{$smarty.const._MSG_TITLE_IS_EMPTY|utf8_escape_js}>'))
			return false;

		document.business_solutiion_form.submit();
	}



</script>

		<div class="box_two_third">
			<div class="box_head"><{$smarty.const._LB_BUSINESS_MANAGEMENT|utf8_escape_html}></div>
			<div class="box_content">

				<form enctype="multipart/form-data" action="<{$smarty.server.REQUEST_URI}>" method="post" name="business_solutiion_form">
				<input type="hidden" id="ID" value="<{$bs->ID}>"/>
				<input type="hidden" id="act" name="act" value="<{$smarty.const.ACT_VALID_EDIT}>"/>
				<table>
                    <tr>
						<td ><{$smarty.const._LB_TITLE|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
						<td colspan="3"><input name="TITLE" id="TITLE" type="text" size="50" value="<{$bs->TITLE|utf8_escape_html}>" /></td>
					</tr>
                    <tr>
						<td ><{$smarty.const._LB_PARENT|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
                        <td colspan="3">
                            <select name="ID_PARENT" id="ID_PARENT">
                                <option value="0">-- Root --</option>
                                <{include file="business_solution_tree_select_parent.html" bss=$bss padding=0 id_current=$bs->ID id_parent=$bs->ID_PARENT}>
                            </select>
                        </td>
					</tr>
                    <tr>
						<td ><{$smarty.const._LB_POS|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
						<td colspan="3"><input name="POS" id="POS" type="text" size="2" value="<{$bs->POS|utf8_escape_html}>" /></td>
					</tr>
					<tr>
						<td><{$smarty.const._LB_IMAGE|utf8_escape_html}>: </td>
						<td>
							<{if $bs->IMAGE}>
								<img src="<{$smarty.const.IMAGE_URL}>/thumb<{$bs->IMAGE}>"><br/>
								<br/>
							<{/if}>
							<input type="file" name="IMAGE" id="IMAGE" size="60" >
						</td>
					</tr>
                    <tr>
						<td ><{$smarty.const._LB_SHORT_CONTENT|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
                        <td colspan="3"><textarea name="SHORT_DESC" id="SHORT_DESC" cols="60" rows="6" ><{$bs->SHORT_DESC|utf8_escape_html}></textarea></td>
					</tr>
                    <tr>
						<td ><{$smarty.const._LB_CONTENT|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
						<td colspan="3">
                            <{$CKEditor->editor("DESCRIPTION",$bs->DESCRIPTION)}>
                        </td>
					</tr>
                    <tr>
						<td ><{$smarty.const._LB_DISABLED|utf8_escape_html}>&nbsp;:&nbsp;</td>
						<td colspan="3"><input type="checkbox" value="1" name="DISABLED" <{if $page->DISABLED}>checked<{/if}>/></td>
					</tr>
					<tr>
						  <td class="submit" colspan="4" style="padding-top:10px"><br />
								<a class="tribullet" href="<{$backlink}>"><{$smarty.const._LB_BACK}></a>
								<a class="tribullet" href="#" onclick="validate()"><{$smarty.const._LB_VALIDATE}></a>
							</td>
						</tr>

				</table>
				</form>

			</div>
		</div>
<{include file="footer.html"}>
